
set more off

gen byte date_cny_broad=0
foreach x in 18661 19015 19399 19754 20138 td(19feb2015) td(08feb2016) td(28jan2017) td(16feb2018) td(05feb2019){
replace date_cny_broad=1 if art_date==`x'-1
replace date_cny_broad=1 if art_date==`x'
replace date_cny_broad=1 if art_date==`x'+1
replace date_cny_broad=1 if art_date==`x'+2
replace date_cny_broad=1 if art_date==`x'+3
replace date_cny_broad=1 if art_date==`x'+4
replace date_cny_broad=1 if art_date==`x'+5
}

gen byte date_duanwu_broad=0
foreach x in 18784 18801 19521 19876 20259 td(20jun2015) td(9jun2016) td(30may2017) td(18jun2018) td(7jun2019){
replace date_duanwu_broad=1 if art_date==`x'-2
replace date_duanwu_broad=1 if art_date==`x'-1
replace date_duanwu_broad=1 if art_date==`x'
replace date_duanwu_broad=1 if art_date==`x'+1
replace date_duanwu_broad=1 if art_date==`x'+2
}

gen byte date_zhongqiu_broad=0
foreach x in 18882 19266 19620 19974 20358 td(27sep2015) td(15sep2016) td(4oct2017) td(24sep2018) td(13sep2019){
replace date_zhongqiu_broad=1 if art_date==`x'-2
replace date_zhongqiu_broad=1 if art_date==`x'-1
replace date_zhongqiu_broad=1 if art_date==`x'
replace date_zhongqiu_broad=1 if art_date==`x'+1
replace date_zhongqiu_broad=1 if art_date==`x'+2
}

gen byte date_holidays=0
replace date_holidays=1 if date_cny_broad==1| date_duanwu_broad==1 |date_zhongqiu_broad==1


gen byte date_congress=0
foreach x in 19305 19306 19307 19308 19309 19310 19311{
replace date_congress=1 if art_date==`x'
}
replace date_congress=1 if art_date>=td(18oct2017)&art_date<=td(24oct2017)

gen byte date_committee=0
foreach x in 18915 18916 18917 18918 19298 19299 19300 19301 19312 19415 19416 19417 19671 19672 19673 19674 20016 20017 20018 20019 20387 20388 20389 20390{
replace date_committee=1 if art_date==`x'
}
replace date_committee=1 if art_date>=td(24oct2016)&art_date<=td(27oct2016)
replace date_committee=1 if art_date>=td(11oct2017)&art_date<=td(14oct2017)
replace date_committee=1 if art_date==td(25oct2017)
replace date_committee=1 if art_date>=td(18jan2018)&art_date<=td(19jan2018)
replace date_committee=1 if art_date>=td(26feb2018)&art_date<=td(28feb2018)
*plenum of central committee

set more off
gen byte date_zhengxie=0
replace date_zhengxie=1 if art_date>=td(03mar2011)&art_date<=td(13mar2011)
replace date_zhengxie=1 if art_date>=td(03mar2012)&art_date<=td(13mar2012)
replace date_zhengxie=1 if art_date>=td(03mar2013)&art_date<=td(12mar2013)
replace date_zhengxie=1 if art_date>=td(03mar2014)&art_date<=td(12mar2014)
replace date_zhengxie=1 if art_date>=td(03mar2015)&art_date<=td(13mar2015)
replace date_zhengxie=1 if art_date>=td(03mar2016)&art_date<=td(13mar2016)
replace date_zhengxie=1 if art_date>=td(03mar2017)&art_date<=td(13mar2017)
replace date_zhengxie=1 if art_date>=td(03mar2018)&art_date<=td(15mar2018)
replace date_zhengxie=1 if art_date>=td(03mar2019)&art_date<=td(13mar2019)

gen byte date_renda=0
replace date_renda=1 if art_date>=td(05mar2011)&art_date<=td(14mar2011)
replace date_renda=1 if art_date>=td(05mar2012)&art_date<=td(14mar2012)
replace date_renda=1 if art_date>=td(05mar2013)&art_date<=td(17mar2013)
replace date_renda=1 if art_date>=td(05mar2014)&art_date<=td(13mar2014)
replace date_renda=1 if art_date>=td(05mar2015)&art_date<=td(15mar2015)
replace date_renda=1 if art_date>=td(05mar2016)&art_date<=td(16mar2016)
replace date_renda=1 if art_date>=td(05mar2017)&art_date<=td(15mar2017)
replace date_renda=1 if art_date>=td(05mar2018)&art_date<=td(20mar2018)
replace date_renda=1 if art_date>=td(05mar2019)&art_date<=td(15mar2019)

set more off

gen byte ccpprov=0
replace ccpprov=1 if np_province1=="上海" & art_date>=td(18may2012) & art_date <=td(22may2012)
replace ccpprov=1 if np_province1=="上海" & art_date>=td(8may2017) & art_date <=td(12may2017)
replace ccpprov=1 if np_province1=="北京" & art_date>=td(29jun2012) & art_date <=td(03jul2012)
replace ccpprov=1 if np_province2=="北京" & art_date>=td(29jun2012) & art_date <=td(03jul2012)
replace ccpprov=1 if np_province1=="北京" & art_date>=td(20jun2017) & art_date <=td(24jun2017)
replace ccpprov=1 if np_province2=="北京" & art_date>=td(20jun2017) & art_date <=td(24jun2017)
replace ccpprov=1 if np_province1=="天津" & art_date>=td(22may2012) & art_date <=td(26may2012)
replace ccpprov=1 if np_province1=="天津" & art_date>=td(23may2017) & art_date <=td(26may2017)
replace ccpprov=1 if np_province1=="重庆" & art_date>=td(18jun2012) & art_date <=td(22jun2012)
replace ccpprov=1 if np_province1=="重庆" & art_date>=td(20may2017) & art_date <=td(24may2017)
replace ccpprov=1 if np_province1=="浙江" & art_date>=td(06jun2012) & art_date <=td(10jun2012)
replace ccpprov=1 if np_province1=="浙江" & art_date>=td(12jun2017) & art_date <=td(16jun2017)
replace ccpprov=1 if np_province1=="福建" & art_date>=td(15nov2011) & art_date <=td(19nov2011)
replace ccpprov=1 if np_province1=="福建" & art_date>=td(23nov2016) & art_date <=td(27nov2016)
replace ccpprov=1 if np_province1=="湖南" & art_date>=td(18nov2011) & art_date <=td(22nov2011)
replace ccpprov=1 if np_province1=="湖南" & art_date>=td(15nov2016) & art_date <=td(19nov2016)
replace ccpprov=1 if np_province1=="湖北" & art_date>=td(09jun2012) & art_date <=td(13jun2012)
replace ccpprov=1 if np_province1=="湖北" & art_date>=td(26jun2017) & art_date <=td(29jun2017)
replace ccpprov=1 if np_province1=="广东" & art_date>=td(09may2012) & art_date <=td(13may2012)
replace ccpprov=1 if np_province1=="广东" & art_date>=td(22may2017) & art_date <=td(26may2017)
replace ccpprov=1 if np_province3=="广东" & art_date>=td(09may2012) & art_date <=td(13may2012)
replace ccpprov=1 if np_province3=="广东" & art_date>=td(22may2017) & art_date <=td(26may2017)
replace ccpprov=1 if np_province1=="广西" & art_date>=td(11nov2011) & art_date <=td(15nov2011)
replace ccpprov=1 if np_province1=="广西" & art_date>=td(21nov2016) & art_date <=td(24nov2016)
replace ccpprov=1 if np_province1=="四川" & art_date>=td(16may2012) & art_date <=td(19may2012)
replace ccpprov=1 if np_province1=="四川" & art_date>=td(24may2017) & art_date <=td(27may2017)
replace ccpprov=1 if np_province1=="甘肃" & art_date>=td(24apr2012) & art_date <=td(28apr2012)
replace ccpprov=1 if np_province1=="甘肃" & art_date>=td(22may2017) & art_date <=td(26may2017)
replace ccpprov=1 if np_province1=="江西" & art_date>=td(26oct2011) & art_date <=td(30oct2011)
replace ccpprov=1 if np_province1=="江西" & art_date>=td(12nov2016) & art_date <=td(16nov2016)
replace ccpprov=1 if np_province1=="山东" & art_date>=td(24may2012) & art_date <=td(28may2012)
replace ccpprov=1 if np_province1=="山东" & art_date>=td(13jun2017) & art_date <=td(17jun2017)

gen byte lhprov=0
replace lhprov=1 if np_province1=="上海" & art_date>=td(27jan2019)&art_date<=(td(27jan2019)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(14jan2019) & art_date <=td(14jan2019)+7
replace lhprov=1 if np_province2=="北京" & art_date>=td(14jan2019) & art_date <=td(14jan2019)+7
replace lhprov=1 if np_province1=="天津" & art_date>=td(20jan2019)&art_date<=(td(20jan2019)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(16jan2019)&art_date<=(td(16jan2019)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(13feb2019)&art_date<=td(19feb2019)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(22jan2019)&art_date<=(td(22jan2019)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(21jan2019)&art_date<=(td(21jan2019)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(25jan2019)&art_date<=(td(25jan2019)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(25jan2019)&art_date<=(td(25jan2019)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(21jan2019)&art_date<=(td(21jan2019)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(14jan2019)&art_date<=(td(14jan2019)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(20jan2019)&art_date<=(td(20jan2019)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(22jan2019)&art_date<=(td(22jan2019)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(26jan2019)&art_date<=(td(26jan2019)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(25jan2019)&art_date<=td(29jan2019)
replace lhprov=1 if np_province1=="上海" & art_date>=td(22jan2018)&art_date<=(td(22jan2018)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(22jan2018) & art_date <=td(22jan2018)+7
replace lhprov=1 if np_province2=="北京" & art_date>=td(22jan2018) & art_date <=td(22jan2018)+7
replace lhprov=1 if np_province1=="天津" & art_date>=td(24jan2018)&art_date<=(td(24jan2018)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(24jan2018)&art_date<=(td(24jan2018)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(25jan2018)&art_date<=(td(25jan2018)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(22jan2018)&art_date<=(td(22jan2018)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(23jan2018)&art_date<=(td(23jan2018)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(23jan2018)&art_date<=(td(23jan2018)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(23jan2018)&art_date<=(td(23jan2018)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(22jan2018)&art_date<=(td(22jan2018)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(25jan2018)&art_date<=(td(25jan2018)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(25jan2018)&art_date<=(td(25jan2018)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(29jan2018)&art_date<=(td(29jan2018)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(26jan2018)&art_date<=(td(26jan2018)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(23jan2018)&art_date<=(td(23jan2018)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(15jan2017)&art_date<=(td(15jan2017)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(14jan2017) & art_date<=td(14jan2017)+7
replace lhprov=1 if np_province2=="北京" & art_date>=td(14jan2017) & art_date<=td(14jan2017)+7
replace lhprov=1 if np_province1=="天津" & art_date>=td(24jan2017)&art_date<=(td(24jan2017)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(15jan2017)&art_date<=(td(15jan2017)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(17jan2017)&art_date<=(td(17jan2017)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(14jan2017)&art_date<=(td(14jan2017)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(13jan2017)&art_date<=(td(13jan2017)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(14jan2017)&art_date<=(td(14jan2017)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(14jan2017)&art_date<=(td(14jan2017)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(15jan2017)&art_date<=(td(15jan2017)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(14jan2017)&art_date<=(td(14jan2017)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(14jan2017)&art_date<=(td(14jan2017)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(27jan2017)&art_date<=(td(27jan2017)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(7jan2017)&art_date<=(td(7jan2017)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(3feb2017)&art_date<=(td(3feb2017)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(20jan2016) & art_date <=td(20jan2016)+7
replace lhprov=1 if np_province2=="北京" & art_date>=td(20jan2016) & art_date <=td(20jan2016)+7
replace lhprov=1 if np_province1=="天津" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(10jan2016)&art_date<=(td(10jan2016)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(24jan2016)&art_date<=(td(24jan2016)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(25jan2016)&art_date<=(td(25jan2016)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(23feb2016)&art_date<=(td(23feb2016)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(15jan2016)&art_date<=(td(15jan2016)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(24jan2016)&art_date<=(td(24jan2016)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(23jan2016)&art_date<=(td(23jan2016)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(24jan2015)&art_date<=(td(24jan2015)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(21jan2015) & art_date <=td(29jan2015)
replace lhprov=1 if np_province2=="北京" & art_date>=td(21jan2015) & art_date <=td(29jan2015)
replace lhprov=1 if np_province1=="天津" & art_date>=td(24jan2015)&art_date<=(td(24jan2015)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(20jan2015)&art_date<=(td(20jan2015)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(07feb2015)&art_date<=(td(07feb2015)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(07feb2015)&art_date<=(td(07feb2015)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(17jan2015)&art_date<=(td(17jan2015)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(27jan2015)&art_date<=(td(27jan2015)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(26jan2015)&art_date<=(td(26jan2015)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(18jan2014)&art_date<=(td(18jan2014)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(14jan2014)&art_date<=(td(14jan2014)+7)
replace lhprov=1 if np_province2=="北京" & art_date>=td(14jan2014)&art_date<=(td(14jan2014)+7)
replace lhprov=1 if np_province1=="天津" & art_date>=td(17jan2014)&art_date<=(td(17jan2014)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(15jan2014)&art_date<=(td(15jan2014)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(11jan2014)&art_date<=(td(11jan2014)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(09feb2014)&art_date<=(td(09feb2014)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(16jan2014)&art_date<=(td(16jan2014)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(14jan2014)&art_date<=(td(14jan2014)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(14jan2014)&art_date<=(td(14jan2014)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(15jan2015)&art_date<=(td(15jan2015)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(16jan2014)&art_date<=(td(16jan2014)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(18jan2014)&art_date<=(td(18jan2014)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(12jan2014) & art_date <=td(17jan2014)
replace lhprov=1 if np_province1=="江西" & art_date>=td(19jan2014)&art_date<=(td(19jan2014)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(16jan2014)&art_date<=(td(16jan2014)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(26jan2013)&art_date<=(td(26jan2013)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(21jan2013)&art_date<=(td(21jan2013)+7)
replace lhprov=1 if np_province2=="北京" & art_date>=td(21jan2013)&art_date<=(td(21jan2013)+7)
replace lhprov=1 if np_province1=="天津" & art_date>=td(25jan2013)&art_date<=(td(25jan2013)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(24jan2013)&art_date<=(td(24jan2013)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(26jan2013)&art_date<=(td(26jan2013)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(24jan2013)&art_date<=(td(24jan2013)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(21jan2013)&art_date<=(td(21jan2013)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(23jan2013)&art_date<=(td(23jan2013)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(23jan2013)&art_date<=(td(23jan2013)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(21jan2013)&art_date<=(td(21jan2013)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(23jan2013)&art_date<=(td(23jan2013)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(25jan2013)&art_date<=(td(25jan2013)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(22jan2013)&art_date<=(td(22jan2013)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(22jan2013)&art_date<=(td(22jan2013)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(24jan2013)&art_date<=(td(24jan2013)+7)
replace lhprov=1 if np_province1=="上海" & art_date>=td(10jan2012)&art_date<=(td(10jan2012)+7)
replace lhprov=1 if np_province1=="北京" & art_date>=td(10jan2012)&art_date<=(td(10jan2012)+7)
replace lhprov=1 if np_province2=="北京" & art_date>=td(10jan2012)&art_date<=(td(10jan2012)+7)
replace lhprov=1 if np_province1=="天津" & art_date>=td(07jan2012)&art_date<=(td(07jan2012)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(11jan2012)&art_date<=(td(11jan2012)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(10jan2012)&art_date<=(td(10jan2012)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(09jan2012)&art_date<=(td(09jan2012)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(10jan2012)&art_date<=(td(10jan2012)+7)
replace lhprov=1 if np_province1=="广东" & art_date>=td(12jan2012)&art_date<=(td(12jan2012)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(12jan2012)&art_date<=(td(12jan2012)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(07jan2012)&art_date<=(td(07jan2012)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(09jan2012)&art_date<=(td(09jan2012)+7)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(07jan2012)&art_date<=(td(07jan2012)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(08jan2012)&art_date<=(td(08jan2012)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(31jan2012)&art_date<=(td(31jan2012)+7)
replace lhprov=1 if np_province1=="山东" & art_date>=td(18feb2012) & art_date <=td(24feb2012)
replace lhprov=1 if np_province1=="上海" & art_date>=td(15jan2011) & art_date <=td(21jan2011)
replace lhprov=1 if np_province1=="北京" & art_date>=td(14jan2011)&art_date<=(td(14jan2011)+7)
replace lhprov=1 if np_province2=="北京" & art_date>=td(14jan2011)&art_date<=(td(14jan2011)+7)
replace lhprov=1 if np_province1=="天津" & art_date>=td(15jan2011)&art_date<=(td(15jan2011)+7)
replace lhprov=1 if np_province1=="浙江" & art_date>=td(15jan2011)&art_date<=(td(15jan2011)+7)
replace lhprov=1 if np_province1=="福建" & art_date>=td(11jan2011)&art_date<=(td(11jan2011)+7)
replace lhprov=1 if np_province1=="湖南" & art_date>=td(18jan2011)&art_date<=(td(18jan2011)+7)
replace lhprov=1 if np_province1=="湖北" & art_date>=td(19jan2011) & art_date <=td(27jan2011)
replace lhprov=1 if np_province1=="广东" & art_date>=td(20jan2011)&art_date<=(td(20jan2011)+7)
replace lhprov=1 if np_province3=="广东" & art_date>=td(20jan2011)&art_date<=(td(20jan2011)+7)
replace lhprov=1 if np_province1=="广西" & art_date>=td(16jan2011)&art_date<=(td(16jan2011)+7)
replace lhprov=1 if np_province1=="四川" & art_date>=td(16jan2011) & art_date <=td(24jan2011)
replace lhprov=1 if np_province1=="重庆" & art_date>=td(08jan2011)&art_date<=(td(08jan2011)+7)
replace lhprov=1 if np_province1=="甘肃" & art_date>=td(12jan2011)&art_date<=(td(12jan2011)+7)
replace lhprov=1 if np_province1=="江西" & art_date>=td(13feb2011) & art_date <=td(18feb2011)
replace lhprov=1 if np_province1=="山东" & art_date>=td(11feb2011) & art_date <=td(17feb2011)

gen byte date_ccpevent=0
replace date_ccpevent=1 if lhprov==1|ccpprov==1|date_congress==1|date_committee==1|date_renda==1|date_zhengxie==1

gen byte date_special=0
replace date_special=1 if date_holiday==1|date_ccpevent==1
